#include <bits/stdc++.h>

using namespace std;

class Solution {
public:
    bool CheckPermutation(string s1, string s2) {
        if (s1.length() != s2.length())
        {
            return false;
        }
        vector<int> chartable(128, 0);
        for (auto& x : s1)
        {
            chartable[x]++;
        }
        for (auto& x : s2)
        {
            chartable[x]--;
            if(chartable[x] < 0)
            {
                return false;
            }
        }
        return true;
    }
};

int main(int argc, char const *argv[])
{
    
    return 0;
}
